# login.py
from src.util.log_util.log import logging


# 登陆审判系统
def shenpan_login():
    logging.handle
    logging.debug("hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello") 
    # 访问目标网址
    #browser.get("http://144.2.224.141:8088/api/advance/caseQuery/zhcx?curPage=1&pageSize=50&orderColumn=&orderType")
    execute_js
    
    pass

# 执行JavaScript代码，输入用户名和密码，点击登录按钮
def execute_js(driver):
    driver.execute_script('document.getElementById("username").value = "lel2";')
    driver.execute_script('document.getElementById("password").value = "Docimax@123";')
    driver.execute_script('document.getElementById("kc-login").click();')



